import React, { Component } from 'react'
import store from '../store'
export default class Demo extends Component {
  render() {
    return (
      <div>
        <h1>获取仓库中的数据组件</h1>
        <button onClick={() => {
          console.log('获取数据')
          console.log(store.getState().loginReducer.userInfo);
        }}>获取数据</button>
      </div>
    )
  }
}
